package com.hly.musicbackground.Final;

public class RedisFinal {
    public final static Long CACHE_NULL_TTL = 30L;//空值过期时间 单位分钟

    public final static String FICTION_CONTENT_KEY = "music:fictionContent:";//小说章节内容key + 小说章节id

    public final static String FICTION_CHAPTER_KEY = "music:fictionChapter:";//小说章节key + 小说id
    public final static String UPDATE_FICTION_CHAPTER_KEY = "music:update:FictionChapter:";//小说章节key + 小说id

    public final static Long LOCK_TTL = 10L;//互斥锁默认过期时间 单位秒
    public final static String LOCK_KEY = "Lock:";//互斥锁key

    public static final String FICTION_CONTENTS_KEY = "music:fictionContents:";//互斥锁默认过期时间 单位秒

    public static final String DISABLE_IP_ADDRESS = "music:disableIpAddress:";//禁用IP
    public static final String TEMPORARY_IP_URL = "music:tempIpURL:";//临时记录IP+URL

    public static final String HOME_GET_RECOMMEND = "music:Home:Recommend";//首页推荐
    public static final String HOME_GET_DETAIL_ID = "music:Home:detail:id:";//根据id获取首页详情

    public static final String HOME_GET_LIKE = "music:Home:like:";//首页个性化推荐
    public static final String HOME_GET_LIKE_WEIGHT = "music:Home:like:weight:";//个性化推荐权重
}
